package com.zgroup.domain

class Role {
  String roleName

  String roleDesc
  // 权限 默认无任何权限 1：有权限 0：无权限
  String permission = "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"

  Date dateCreated
  Date lastUpdated


  static constraints = {

    permission(nullable: true, maxSize: 500)

  }
  static mapping = {


    sort "lastUpdated"
    order "desc"
  }

  String toString() {
    roleName
  }
}
